package com.mayikt.main.producer;


import com.mayikt.main.api.impl.config.RabbitMQSpareTireConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 余胜军
 * @ClassName LoginProducer
 * @qq 644064779
 * @addres www.mayikt.com
 * 微信:yushengjun644
 */
@Component
@Slf4j
public class UniqueLogProducer {
    @Autowired
    private AmqpTemplate amqpTemplate;

    /**
     * 登录后续处理流程
     */
    public void sendMsg(String msg) {
        amqpTemplate.convertAndSend(RabbitMQSpareTireConfig.EXCHANGE_SPARETIRE_MAYIKT_NAME, "", msg);
    }
}